<template>
  <div class="component-listHeader">
    <div class="search-header">
      <div class="left-title">
        <p class="left-text">
          <span class="iconfont">&#xe61e;</span>
          合同列表
        </p>
        <div class="right">
          <button v-show="outputList">导出列表</button>
          <el-select v-model="value1" placeholder="显示条数" class="right-select-margin">
            <el-option
              v-for="item in options1"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            ></el-option>
          </el-select>
          <el-select v-model="value2" placeholder="排序方式" class="right-select-margin">
            <el-option
              v-for="item in options2"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            ></el-option>
          </el-select>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "listHeader",
  data() {
    return {
      outputList: true,
      // 显示条数的data
      options1: [
        {
          value: "选项1",
          label: "1"
        }
      ],
      // 排序方式的data
      options2: [
        {
          value: "选项1",
          label: "a"
        }
      ],
      // 显示条数的v-model
      value1: "",
      // 排序方式的v-model
      value2: ""
    };
  }
};
</script>

<style>
.component-listHeader .search-header {
  width: 1100px;
  box-sizing: border-box;
  border: 1px solid rgba(228, 228, 228, 1);
  background-color: rgba(255, 255, 255, 1);
  margin: 20px auto 0;
}

.component-listHeader .search-header .left-title {
  display: flex;
  justify-content: space-between;
  width: 100%;
  background-color: rgba(243, 243, 243, 1);
  height: 45px;
  box-sizing: border-box;
}

.component-listHeader .search-header .left-title .left-text {
  width: 20%;
  color: #666;
  line-height: 45px;
  font-family: "微软雅黑";
  font-weight: 400;
  font-size: 12px;
  text-align: left;
  margin: 0 0 0 30px;
}

.component-listHeader .search-header .right {
  width: 70%;
  display: flex;
  justify-content: flex-end;
  margin-right: 30px;
}

.component-listHeader .search-header .right button {
  padding: 0 15px;
  height: 30px;
  margin: 6px 5px;
  line-height: 30px;
  font-size: 14px;
  color: #666;
  background-color: #fff;
  border: 1px solid #ccc;
}

.component-listHeader .search-header .right button:hover {
  background-color: #f3f3f3;
}

.component-listHeader .search-header .right .right-select-margin {
  margin-top: 6px;
  margin-right: 8px;
}

</style>